package main

import "fmt"

type Hello func(name string)	//定义函数类型

func chinaSayHello(name string) {
	fmt.Println("你好"+name)
}

func englishSayHello(name string)  {
	fmt.Println("hello"+name)
}

func main() {
	var hello Hello		//定义Hello函数类型的 函数变量
	hello = chinaSayHello
	hello("小明")

	hello = englishSayHello
	hello("小明")
}
